﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="manage_survey_VoteTopic"
    Codebehind="VoteTopic.aspx.cs" %>

<%@ Register Src="~/controls/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath()); %>/css/css.css"
        rel="stylesheet" type="text/css" />

    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>

    <script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0" class="toptable">
            <tr>
                <td width="57%" class="sysmain_navi" style="padding-left: 14px" height="30">
                    调查管理</td>
                <td width="43%" class="topnavichar" style="padding-left: 14px">
                    <div align="left">
                        位置导航：<a href="../main.aspx" target="sys_main" class="list_link">首页</a><img alt=""
                            src="../../sysImages/folder/navidot.gif" border="0" />调查管理</div>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" class="Navitable">
            <tr class="menulist">
                <td height="18" style="width: 45%; padding-left: 14px" colspan="2">
                    <label id="param_id" runat="server" />
                    <a href="setClass.aspx" class="menulist">投票分类设置</a>&nbsp;┊&nbsp;<a href="VoteTopic.aspx"
                        class="menulist">投票主题设置</a>&nbsp;┊&nbsp;<a href="VoteItem.aspx" class="menulist">投票选项设置</a>&nbsp;┊&nbsp;<a
                            href="ManageVote.aspx" class="menulist">投票情况管理</a>
                </td>
            </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="5" cellspacing="1">
            <tr>
                <td height="18" style="width: 45%" colspan="2">
                    <div align="right">
                        <a href="Topic_Add.aspx" class="topnavichar">新增主题</a> |
                        <asp:LinkButton ID="DelP" runat="server" CssClass="topnavichar" OnClientClick="{if(confirm('确认删除所选信息吗?')){return true;}return false;}"
                            OnClick="DelP_Click">批量删除</asp:LinkButton>
                        |
                        <asp:LinkButton ID="DelAll" runat="server" CssClass="topnavichar" OnClientClick="{if(confirm('确认删除全部信息吗?')){return true;}return false;}"
                            OnClick="DelAll_Click">删除全部</asp:LinkButton></div>
                </td>
            </tr>
        </table>
        <asp:Repeater ID="DataList1" runat="server">
            <HeaderTemplate>
                <table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" class="table">
                    <tr class="TR_BG">
                        <td class="sys_topBg" align="center">
                            主题</td>
                        <td class="sys_topBg" align="center">
                            类别</td>
                        <td class="sys_topBg" align="center">
                            类型</td>
                        <td class="sys_topBg" align="center">
                            方式</td>
                        <td class="sys_topBg" align="center">
                            开始时间</td>
                        <td class="sys_topBg" align="center">
                            结束时间</td>
                        <td class="sys_topBg" align="center">
                            JS调用</td>
                        <td class="sys_topBg" align="center">
                            操作
                            <input type="checkbox" id="vote_checkbox" value="-1" name="vote_checkbox" onclick="javascript:return selectAll(this.form,this.checked);" /></td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="TR_BG_list" onmouseover="overColor(this)" onmouseout="outColor(this)">
                    <td>
                        <a href="Topic_Add.aspx?tid=<%# DataBinder.Eval(Container.DataItem, "TID")%>" class="list_link" title="点击查看详情或修改"><%# DataBinder.Eval(Container.DataItem, "Title")%></a>
                    </td>
                    <td>
                        <%# DataBinder.Eval(Container.DataItem, "ClassName")%>
                    </td>
                    <td align="center">
                        <%# GetVoteType(DataBinder.Eval(Container.DataItem, "Type"))%>
                    </td>
                    <td align="center">
                        <%# GetDisMode(DataBinder.Eval(Container.DataItem, "DisMode"))%>
                    </td>
                    <td align="center">
                        <%# GetDateStr(DataBinder.Eval(Container.DataItem, "StartDate"))%>
                    </td>
                    <td align="center">
                        <%# GetDateStr(DataBinder.Eval(Container.DataItem, "EndDate"))%>
                    </td>
                    <td align="center">
                        <a href="javascript:getjsCode(<%# DataBinder.Eval(Container.DataItem, "TID")%>);" class="list_link">代码</a>
                    </td>
                    <td align="center">
                        <a href="Topic_Add.aspx?tid=<%# DataBinder.Eval(Container.DataItem, "TID")%>"  class="list_link" title="修改此项"><img src="../../sysImages/<%#  NetCMS.Config.UIConfig.CssPath()%>/sysico/edit.gif" border="0" alt="修改此项" /></a><a href="VoteTopic.aspx?type=delone&id=<%# DataBinder.Eval(Container.DataItem, "TID")%>"  class="list_link" title="删除此项" onclick="{if(confirm('确认删除吗？')){return true;}return false;}"><img src="../../sysImages/<%# NetCMS.Config.UIConfig.CssPath()%>/sysico/del.gif" border="0" alt="删除此项" /></a><input type="checkbox" name="vote_checkbox" id="vote_checkbox" value="<%# DataBinder.Eval(Container.DataItem, "TID")%>"/>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div align="right" style="width: 98%">
            <uc1:PageNavigator ID="PageNavigator1" runat="server" />
        </div>
        <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
            <tr class="TR_BG_list">
                <td class="list_link">
                    主题查询: &nbsp; 关键字:
                    <asp:TextBox runat="server" ID="KeyWord" size="15" CssClass="form" />
                    &nbsp;&nbsp; 查询类型:
                    <asp:DropDownList ID="DdlKwdType" runat="server" CssClass="form">
                        <asp:ListItem Value="choose" Text="请选择" />
                        <asp:ListItem Value="title" Text="主题" />
                        <asp:ListItem Value="class" Text="类别" />
                        <asp:ListItem Value="starttime" Text="开始时间" />
                        <asp:ListItem Value="endtime" Text="结束时间" />
                        <asp:ListItem Value="itemmodel" Text="排列方式" />
                    </asp:DropDownList>
                    &nbsp;&nbsp;
                    <asp:Button runat="server" ID="BtnSearch" Text=" 查询 " CssClass="form" OnClick="BtnSearch_Click" />
                    &nbsp;<span class="helpstyle" style="cursor: help;" title="点击查看帮助" onclick="Help('H_searchTitle_0001',this)">帮助</span>
                </td>
            </tr>
        </table>
    </form>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg"
        style="height: 76px">
        <tr>
            <td align="center">
                <label id="copyright" runat="server" />
            </td>
        </tr>
    </table>
</body>

<script language="javascript">
    function getjsCode(jsid)
    {
        if (jsid!=""&&!isNaN(jsid))
	     {
	        //----------控制居中显示----------------
	        var WWidth = (window.screen.width-500)/2;
            var Wheight = (window.screen.height-150)/2;
            //--------------------------------------
            window.open('showJsPath.aspx?jsid='+jsid, '投票JS代码调用', 'height=200, width=400, top='+Wheight+', left='+WWidth+', toolbar=no, menubar=no, scrollbars=no,resizable=yes,location=no, status=no');
	     }
	    else
	     {
		    alert("出现错误，请联系技术人员！");
	     }
    }
</script>

</html>
